Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Custom class-attributes indexing #222

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

JorgenSolli
Copy link

Allows for indexing specific attributes on classes using the CustomAttributeMap setting that was never properly/finished developed.

foreach ( $tmpNodeRowList as $nodeRow )
{
$nodeRowList[$nodeRow['node_id']] = $nodeRow;

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why it that code required? Also, it has nothing to do with what the pull request describes, right?

$objectAttribute->attribute('contentclass_attribute_identifier')
);
if (array_key_exists($identifierComposite, $attributeMapList)) {
return self::$singletons[$objectAttribute->attribute('id')] = new $attributeMapList[$identifierComposite]($objectAttribute);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe check if the class really exists. Not sure but trying to get an instance of a non-existing class is probably throwing a fatal error?
Is that self::$singletons used anywhere?

@@ -233,6 +233,23 @@ public static function getFieldNameList( eZContentClassAttribute $classAttribute
}
}

$customAttributeMap = $eZFindIni->variable('SolrFieldMapSettings', 'CustomAttributeMap');
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code style is a bit off.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants